package MyGO.utils.enumerastion;

public enum BodyPart {
    WRAIST,  // 腰
    BACK,  // 背
    HAND,  // 手
    LEG,  // 腿
    EYE;  // 眼睛

    @Override
    public String toString() {
        return switch (this) {
            case WRAIST -> "腰";
            case BACK -> "背";
            case HAND -> "手";
            case LEG -> "腿";
            case EYE -> "眼睛";
        };
    }

    public BodyPart parseBodyPart(String bodyPart) {
        return switch (bodyPart) {
            case "腰" -> WRAIST;
            case "背" -> BACK;
            case "手" -> HAND;
            case "腿" -> LEG;
            case "眼睛" -> EYE;
            default -> null;
        };
    }
}
